layui.use(['ax','admin','form'], function () {
    var $ = layui.$;
    var $ax = layui.ax;
    var admin = layui.admin;
    var form = layui.form;

    $("#btnSearch").click(function () {
        var year = $("#year").val();
        window.location.href = Feng.ctxPath + "/deal?year="+year;

    })

    var uploadFile = function(dataId) {
        admin.putTempData('formOk', false);
        top.layui.admin.open({
            type: 2,
            title: '上传资料',
            content: Feng.ctxPath + '/deal/toUpload?dataId='+dataId,
            end: function () {
                admin.getTempData('formOk') && location.reload();
            }
        });
    }


})